Skip to content

Fix product versions split across pages when using collapsible grouping#480

Closed
utkarshasinha wants to merge 1 commit intoaboutcode-org:mainfrom
utkarshasinha:fix/product-version-pagination-grouping
Closed

Fix product versions split across pages when using collapsible grouping#480
utkarshasinha wants to merge 1 commit intoaboutcode-org:mainfrom
utkarshasinha:fix/product-version-pagination-grouping

Conversation

@utkarshasinha
Copy link
Copy Markdown

fixes #460
The product list page splits versions of the same product across different pages. For example, a product with 60 versions shows some on page 1 and the rest on page 2 under separate collapsible groups, which is confusing.

This happens because pagination runs before grouping. Fixed by
grouping all versions first, then paginating the groups.

Signed-off-by: utkarshasinha <utkarsha20005@gmail.com>
@utkarshasinha utkarshasinha force-pushed the fix/product-version-pagination-grouping branch from 8289f98 to df49bef Compare February 18, 2026 13:32
@tdruez
Copy link
Copy Markdown
Contributor

tdruez commented Mar 1, 2026

@utkarshasinha The issue with this approach is that the entire list of product is selected from the DB to be grouped before being paginated on each request. This is not scalable as the query performances will get worst as the number of product increase.
Also, you PR is lacking proper unit tests.

@tdruez tdruez closed this Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: Product overview page splits product with many versions across pages

2 participants